package org.chen.domain.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Data
public class CategoryDTO {
    private String id;
    @NotBlank(message = "分类名称不能为空")
    private String name;

    @NotBlank(message = "分类编码不能为空")
    private String code;

    private String parentId;

    @Min(value = 0, message = "排序值不能小于0")
    private Integer sort;

    private String icon;

    private String description;

    @NotBlank(message = "分类类型不能为空")
    private String type;
}